<?php 
/*
* Temperature conversions
*/
function celsiusToFahrenheit($degCelsius) {
	return round(9 / 5 * floatval( $degCelsius) + 32, 2);
}

function fahrenheitToCelsius($degFahrenheit) {
	return round(5 / 9 * (floatval($degFahrenheit) - 32), 2);
}

/*
* Pressure conversions
*/
function paTommHg($pa){
    return round(0.00750062 * floatval($pa), 2);  
}

function mmHgTohPa($mmHg){
    return round(133.322488 * floatval($mmHg), 2);
}

/*
* Speed conversions
*/
function kmhToMph($kmh){
    return round(0.62137119 * floatval($kmh), 2);  
}

function mphToKmh($mph){
    return round(1.60934399 * floatval($mph), 2);
}
?>